#include "includes.h"


volatile Globals_TypeDef         g_Globals;
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/

/**
  * @brief  base on sysTick 1000Hz 1ms/tick.
  * @param  None
  * @retval None
  */
void delay_ms(unsigned int uiMs)
{
    unsigned int uiTimerCnt;
    uiTimerCnt = g_Globals.uiSystickTick1;
    
    while((g_Globals.uiSystickTick1 - uiTimerCnt) <= uiMs);
}

void HAL_SYSTICK_Callback(void)
{
  g_Globals.uiSystickTick1++;
}